vcpu_default = 1
memory_default = 1024*1024*1024

platform_default = {
            "pae": "1",
            "boot": "cd",
            "localtime": "0",
            "acpi": "1",
            "usbdevice": "tablet",
            "serial": "pty",
            "usb":"1",
            "parallel": '',
            "apic": "1",
            "xen_platform_pci":"1", 
            }

VM_default = { 
              "uuid": "" ,
              "allowed_operations":[],
              "current_operations":[],
              "power_state": 'UNRECOGNIZED', 
              "name_label": "" ,
              "name_description":"",
              "user_version": 0,
              "is_a_template": False,
              "is_local_vm": False,
              "ip_addr":[],
              "MAC": "",
              "suspend_VDI": "OpaqueRef:NULL",
              "resident_on":  "OpaqueRef:NULL",
              "affinity":  "OpaqueRef:NULL",
              "memory_overhead": 0,
              "memory_target": 0,
             'memory_static_max': memory_default,
              'memory_dynamic_max':memory_default,
              'memory_dynamic_min': 512 * 1024 * 1024,
              'memory_static_min': 0,
              "VCPUs_params": {},
              'VCPUs_max': vcpu_default,
              'VCPUs_at_startup': vcpu_default, 
              'actions_after_crash': 'restart',
              'actions_after_reboot': 'restart',
              'actions_after_shutdown': 'destroy',
              "consoles": [],
              "VIFs" : [],
              "VBDs" : [],
              "crash_dumps": {},
              "VTPMs": {},
              "PV_bootloader": "",
              "PV_kernel": "" ,
              "PV_ramdisk": "" ,
              "PV_args": "" ,
              "PV_bootloader_args": "" ,
              "PV_legacy_args": "" ,
              "HVM_boot_policy": "hvm" ,
              "HVM_boot_params": {},
              "HVM_shadow_multiplier": 0.0,
              'platform': platform_default,
              "PCI_bus": "" ,
              "other_config": {},
              "domid": 0 ,
              "domarch": "" ,
              "last_boot_CPU_flags": {},
              "is_control_domain": False,
              "metrics":  "OpaqueRef:NULL",
              "guest_metrics":  "OpaqueRef:NULL",
             "last_booted_record": "",
            "recommendations":"",
             "xenstore_data": {},
              "ha_always_run": False,
             "ha_restart_priority": "",
             "is_a_snapshot": False,
             "snapshot_of":  "OpaqueRef:NULL",
             "snapshots": [],
             "snapshot_time": "",
             "transportable_snapshot_id": "",
             "blobs": {},
             "tags": [],
             "blocked_operations": {},
             "snapshot_info":{},
             "snapshot_metadata":{},
             "parent": "OpaqueRef:NULL",
             "children": [], 
             "bios_strings": {},
             "protection_policy": "OpaqueRef:NULL",
             "is_snapshot_from_vmpp": False,
             "appliance": "OpaqueRef:NULL",
             "start_delay": 0,
             "shutdown_delay":  0,
             "order": 0,
             "VGPUs": [],
             "attached_PCIs": [],
             "suspend_SR": "OpaqueRef:NULL",
             "connected_disk_SRs": [],
             "connected_iso_SRs": [],
             "version": 0
             }
vif_default = {
               "uuid": '',
               "allowed_operations": [],
               "current_operations": {},
               "device": '',
               "network": "OpaqueRef:NULL",
               "VM": "OpaqueRef:NULL",
               "MAC": "",
               "MTU": 0,
               "other_config": {},
               "currently_attached": False,
               "status_code": 0,
               "status_detail": '',
               "runtime_properties": {},
               "qos_algorithm_type": "",
               "qos_algorithm_params": {},
               "qos_supported_algorithms": [],
               "metrics": "OpaqueRef:NULL",
               "MAC_autogenerated": False
               }
              
console_default = {
                   'uuid': '',
                   'protocol':'rfb',
                   'VM': '',
                   'location': '',
                   'other_config': {
                                   'vnc':'1',
                                   'sdl':'0',
                                   'vncunused':'1',
                                   'vnclisten': '0.0.0.0'
                                   }
                   }

vdi_default = { 
               "uuid" : "",
               "name_label": "" ,
               "name_description":"",
               "allowed_operations":[],
               "current_operations" : {},
               "SR": "OpaqueRef:NULL",
               "VBDs": [],
               "crash_dumps" : [],
               "virtual_size": 0,
               "physical_utilisation": 0,
               "type": 'UNRECOGNIZED',
               "sharable": False,
               "read_only": False,
               "other_config": {},
               "storage_lock": False,
               "location": "",
               "managed": False,
               "missing": False,
               "parent": "OpaqueRef:NULL",
               "xenstore_data": {},
               "sm_config": {},
               "is_a_snapshot": False,
               "snapshot_of": "OpaqueRef:NULL",
               "snapshots": [],
               "snapshot_time": '',
               "tags": [], 
               "allow_caching": False,
               "on_boot": 'UNRECOGNIZED',
               "metadata_of_pool": "OpaqueRef:NULL",
               "metadata_latest": False,             
               }


vbd_default = {
               "uuid": "",
               "allowed_operations": [],
               "current_operations":{},
               "VM": "OpaqueRef:NULL",
               "VDI": "OpaqueRef:NULL",
               "device": '',
               "userdevice": '',
               "bootable": False,
               "mode": 'UNRECOGNIZED',
               "type": 'UNRECOGNIZED',
               "unpluggable": False,
               "storage_lock": False,
               "empty": False,
               "other_config": {},
               "currently_attached": False,
               "status_code": 0,
               "status_detail": "",
               "runtime_properties": {},
               "qos_algorithm_type": "",
               "qos_algorithm_params": {},
               "qos_supported_algorithms": [],
               "metrics": "OpaqueRef:NULL",
               }














